package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Sanmier
 * @create 2020-12-30 14:15
 */
@Component
public interface CoReturnListGoodsDao {

    //保存新增退货单
    void saveCoReturnList(CustomerReturnList customerReturnList);


    //保存新增退货单商品
    void saveCoReturnListGoods(CustomerReturnListGoods customerReturnListGoods);


    //客户退货单查询
    List<CustomerReturnList> getCoReSearchList(@Param("returnNumber") String returnNumber,@Param("customerId")  Integer customerId,@Param("state")  Integer state,@Param("sTime")  String sTime,@Param("eTime")  String eTime);


    //退货单商品信息
    List<CustomerReturnListGoods> getCoReGoodsList(@Param("customerReturnListId") Integer customerReturnListId);


    //删除退货商品单
    void deleteCoReturnListGoods(@Param("customerReturnListId") Integer customerReturnListId);


    //删除退货单
    void deleteCoReturnList(@Param("customerReturnListId") Integer customerReturnListId);


    //修改销售推货单
    void updateCoReturnList(Integer customerReturnListId);
}
